s = input("请输入一个字符串：")

digits = 0
letters = 0
upper = 0
lower = 0

for char in s:
    if char.isdigit():
        digits += 1
    elif char.isalpha():
        letters += 1
        if char.isupper():
            upper += 1
        else:
            lower += 1

if len(s) > 10:
    s = s[:10]

print(f"数字个数：{digits}")
print(f"字母个数：{letters}")
print(f"大写字母个数：{upper}")
print(f"小写字母个数：{lower}")
print(f"处理后的字符串：{s}")